<?php print $this->doctype()?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
	<?php
		print $this->headBase();
    	print $this->headMeta();
    	print $this->headTitle();
    	print $this->headScript();
    	print $this->headLink();
    	print $this->headStyle();
    ?>
</head>

<body>

<div class="container_16">

    <div id="top">
        <?php print $this->site()->static(array('alias' => 'top'));?>

        <ul>
            <li class="home"><a href="<?php print $this->url(array('alias'=>'home'),'site',true)?>">Strona główna</a></li>
            <li class="kontakt"><a href="<?php print $this->url(array('alias'=>'kontakt'),'site',true)?>">Kontakt</a></li>
        </ul>
    </div>

	<div id="header" class="span_16">
		<div id="slogan">
			<?php print $this->site()->static(array('alias' => 'header'))?>
		</div>
		<div id="nav" class="span_16">
			<?php
				/* @var $nav Zend_View_Helper_Navigation_Menu */
				$nav =  $this->getHelper('site')->get('navigation');
				$cot = $nav->getContainer();
	
				// znajdz aktywną stronę!
				if ('gallery' == $this->urlParams('module')) {
					$cot->findBy('alias', 'galeria')->setActive(true);
				} else
				if (null != ($page = $cot->findBy('alias', $this->urlParams('alias')))) {
					$page->setActive(true);
				}

				// tylko 1rwszy poziom 
				print $menu = $nav->setMaxDepth(0)->render();
			?>
		</div>
	</div>

	<div id="wrapper" >
		<div id="content" class="grid_11 alpha">
			<div class="wrapper">
				<?php print $this->layout()->content; ?>
			</div>
		</div>
		<div id="sitebar" class="grid_5 omega">
			<div class="wrapper">
				<?php
                    $alias = 'sitebar';
                    if ('kontakt' == $this->urlParams('alias')) {
                        $alias = 'sitebar-kontakt';
                    }
                    print $this->site()->static(array('alias' => $alias));
                ?>
			</div>
		</div>
	</div>

	<div id="footer">
		<?php print $menu?>
		
		<p class="prom"><a href="http://lekarze.krakow.pl" title="Lekarz kraków">Lekarz kraków</a></p>
	</div>

</div>

<?php print $this->inlineScript()?>
</body>
</html>